/**   
 * api接口统一管理
 */
import {get, post } from '../utils/request'

//获取全部大客户
export const GetBigCustomer = res => get("/api/getAllKeyAccounts", res)
    //获取大客户所有行业
export const GetIndustry = res => get("/api/getIndustry", res)
    //搜索大客户
export const SerchBigCustomer = p => post("/api/queryAllKeyAccounts", p)
    //更改大客户状态
export const ChangeState = p => post("/api/setAccountsStatus", p)
    //获取大客户详情信息
export const GetDetailMsg = p => post("/api/getAccountInfo", p)
    //获取订单信息
export const GetOrderMsg = res => get("/api/getAllOrder", res)
    //获取订单详情里的商品信息
export const GetShoplMsg = p => post("/api/getGoodList", p)
    //添加大客户
export const AddBigCustomer = p => post("/api/Addkeyaccount", p)
    // 大客户详情里的订单根据日期筛选
export const SerchOrder = p => post("/api/getOrderFromDate", p)